package com.mobile.manager.dao;

import com.mobile.manager.pojo.Device;

import java.util.List;

/**
 * Created by zhangdi on 16/4/24.
 */
public interface IDeviceDao {
    int deleteByPrimaryKey(Integer id);

    int insert(Device record);

    int insertDevice(Device record);

    Device selectByPrimaryKey(Integer id);

    List<Device> selectAllDevice();

    List<Device> searchDevice(Device device);

    int updateByPrimaryKey(Device record);

    int borrowDevice(Device device);

    String getCountOfDeviceByOS(Device device);



}
